package com.dreams.dream.service.impl;

import com.dreams.dream.dao.base.DelWeiboInfoMapper;
import com.dreams.dream.pojo.base.Criteria;
import com.dreams.dream.pojo.base.DelWeiboInfo;
import com.dreams.dream.service.DelWeiboInfoService;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DelWeiboInfoServiceImpl implements DelWeiboInfoService {
    @Autowired
    private DelWeiboInfoMapper delWeiboInfoMapper;

    private static final Logger logger = LoggerFactory.getLogger(DelWeiboInfoServiceImpl.class);

    public int countByExample(Criteria example) {
        int count = this.delWeiboInfoMapper.countByExample(example);
        logger.debug("count: {}", count);
        return count;
    }

    public DelWeiboInfo selectByPrimaryKey(String weiboId) {
        return this.delWeiboInfoMapper.selectByPrimaryKey(weiboId);
    }

    public List<DelWeiboInfo> selectByExample(Criteria example) {
        return this.delWeiboInfoMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String weiboId) {
        return this.delWeiboInfoMapper.deleteByPrimaryKey(weiboId);
    }

    public int updateByPrimaryKeySelective(DelWeiboInfo record) {
        return this.delWeiboInfoMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(DelWeiboInfo record) {
        return this.delWeiboInfoMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(Criteria example) {
        return this.delWeiboInfoMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(DelWeiboInfo record, Criteria example) {
        return this.delWeiboInfoMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(DelWeiboInfo record, Criteria example) {
        return this.delWeiboInfoMapper.updateByExample(record, example);
    }

    public int insert(DelWeiboInfo record) {
        return this.delWeiboInfoMapper.insert(record);
    }

    public int insertSelective(DelWeiboInfo record) {
        return this.delWeiboInfoMapper.insertSelective(record);
    }
}